import {request} from './request'

//多工站每小时数据情况 LeftChart.vue\LeftChart3.vue
export function hourlyCapacity(){
  return request({
    url:'/station/hourlyCapacity'
  })
}

// 设备状态 Cards.vue\Cards1.vue
export function machineInfo(){
  return request({
    url:'/station/machineInfo'
  })
}
// 多工站每日数据情况 RightChart.vue\RightChart4.vue
export function formatDate(){
  return request({
    url:'/station/formatDate'
  })
}

//工站详情看板左块 LeftChart1.vue
export function stationDetails(params){
  return request({
    url:'/station/stationDetails',
    params
  })
}

//工站人员 RightChart2.vue
export function stationPerson(params){
  // console.log('params',params);
  // 会请求2次  这样改后只会请求一次
  if (params.stationId == null) {
    return;
  }else{
    return request({
      url:'/station/stationPerson',
      params
    })
  }
}

//近31天数据情况
export function thirtyOneData(params){
  return request({
    url:'/station/thirtyOneData',
    params
  })
}

//当日区间数据情况
export function dayIntervalData(params){
  return request({
    url:'/station/dayIntervalData',
    params
  })
}

//4button RightChart1.vue
export function recording(params){
  return request({
    url:'/station/recording',
    params
  })
}

